package com.cg.annotation.withAOP.controller;

import com.cg.annotation.withAOP.MyLog;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cheyinbo
 * @description TODO
 * @date 2021/7/7 15:35
 */
@RestController
public class IndexController {

    @GetMapping("/sourceC")
    public String sourceC(){
        return "访问sourceC资源";
    }

    @MyLog
    @GetMapping("/sourceD")
    public String sourceD(){
        return "访问sourceD资源";
    }

}
